<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
  <body>
      <form data-th-action="@{/login}" method="post">
          用户名:<input type="text" name="userName"><br>
          密码:<input type="password" name="userPassword"><br>
          <button type="submit">登录</button>
      </form>
  </body>
</html>